﻿using Appliaction.IAppServices;
using Domain.IRepositorys;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Appliaction.AppServices
{
    public class SystemHomeService : ISystemHomeService
    {
        private readonly ISystemHomeRepository systemHomeRepository;

        public SystemHomeService(ISystemHomeRepository systemHomeRepository)
        {
            this.systemHomeRepository = systemHomeRepository;
        }

        /// <summary>
        /// 查询业务单总数
        /// </summary>
        /// <returns></returns>
        public int GetBusinessCounts()
        {
            return systemHomeRepository.GetBusinessCounts();
        }

        /// <summary>
        /// 查询出库总数
        /// </summary>
        /// <returns></returns>
        public decimal GetOutboundCounts()
        {
            return systemHomeRepository.GetOutboundCounts();
        }

        /// <summary>
        /// 查询退货总数
        /// </summary>
        /// <returns></returns>
        public decimal GetReturnCounts()
        {
            return systemHomeRepository.GetReturnCounts();
        }

        /// <summary>
        /// 查询入库总数
        /// </summary>
        /// <returns></returns>
        public decimal GetStoreCounts()
        {
            return systemHomeRepository.GetStoreCounts();
        }
    }
}
